import { createWebHistory, createRouter } from 'vue-router'



import Login from '../views/login.vue'
import Wode from '../views/home/wode.vue'
import Gouwuche from '../views/home/gouwuche.vue'
import Fenlei from '../views/home/fenlei.vue'
import Home from '../views/home/Home.vue'
import Homeview from '../views/home/index.vue'

const routes = [
    { path: '', redirect: '/home/index' },
    {
        path: '/home',
        component: Homeview,
        children: [
             
            {
                path: 'Home',
                component: Home,
            },
            {
                path: 'fenlei',
                component: Fenlei,
            },
            {
                path: 'gowuche',
                component: Gouwuche,
            },
            {
                path: 'wode',
                component: Wode,
            },
        ]
    },
    { path: '/login', component: Login },
]

export const router = createRouter({
    history: createWebHistory(),
    routes,
})